<template>
    <div class="container">
        <el-input placeholder="请输入地址" v-model="input" :id="search_id"></el-input>
    </div>
</template>

<script>
    export default {
        name:'Search',
        data() {
            return {
                input:'',
                search_id:'searchId'
            }
        },
        methods:{
            sendId() {
                this.$bus.$emit('share_id', this.search_id)
            }
        },
        mounted(){
            this.sendId();
        }
    }
</script>

<style lang="less" scoped>
    .container{
        margin-top: 36px;
        width: 96%;
    }
</style>